package com.ym.medical.domain.param;

import com.ym.common.constant.BeanCovert;
import com.ym.medical.domain.entity.DsAdviseRecordEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

import static com.ym.common.constant.ValidRule.Add;
import static com.ym.common.constant.ValidRule.Update;

/**
 * Redis保存全部待抢订单：
1、推荐给全科医生抢单时，全科医生刷新页面获取订单，待全科医生抢单成功，插入工对象 ds_advise_record
 *
 * @author ym
 * @date 2020-09-14
 */
@ApiModel("Redis保存全部待抢订单-修改")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DsAdviseRecordUpdateParam extends BeanCovert<DsAdviseRecordEntity>{

    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空", groups = {Add.class, Update.class})
    private Long id;

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("全科医生或患者直接找专科为空")
    private Long adviseDsId;

    @ApiModelProperty("全科医生或患者直接找专科为空")
    private Long adviseDoctorId;

    @ApiModelProperty("被推荐的医生ID")
    private Long beadvisedDoctorId;

    @ApiModelProperty("被推荐工作室ID")
    private Long beadvisedDsId;

    @ApiModelProperty("创建时间")
    @NotNull(message = "创建时间不能为空", groups = Add.class)
    private Date createTime;

}
